﻿namespace StudentBackendService.Exceptions
{
    public class LogicException: Exception
    {
        private string _message;
        private short _errorCode;

        public LogicException(string msg, short code) 
        { 
            _message = msg;
            _errorCode = code;
        }

        public string GetMessage() { return _message; }

        public short GetCode() { return _errorCode; }
    }
}
